import java.util.Scanner;
public class demo8 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入小时数: ");
        int hours = scanner.nextInt();
        int days = hours / 24;
        int Hours = hours % 24;

        System.out.print(days);
        if (days > 0) {
            System.out.print("天零");
        }
        if (Hours > 0) {
            System.out.print(Hours + "个小时");
        } else {
            System.out.print("零个小时");
        }

        scanner.close();
    }
}